description = "默认布局页面1"
[account]
[catalog]
[session]
==
use Jason\Ccshop\Controllers\Orders;
use Jason\Ccshop\Models\TraceCode;
function onStart() {
$this['orderStatus'] = (new Orders())->myOrdersStatus();
$orderStatus = (new Orders())->myOrdersStatus();
$cr = 0;
$op = 0;

foreach($orderStatus as $os){
if($os['status_id'] == 6){
$cr += $os['count'];
}
if($os['status_id'] == 8){
$cr += $os['count'];
}
if($os['status_id'] == 1){
$op += $os['count'];
}
if($os['status_id'] == 9){
$op += $os['count'];
}
}
$this['cr']=$cr;
$this['op']=$op;
//GA代码2_值
$google_analyze_id = TraceCode::fetch('google_analyze_id');
$facebook_remarketing_code_id = TraceCode::fetch('facebook_remarketing_code_id');
if($facebook_remarketing_code_id){
    $this['facebook_remarketing_code_id'] = $facebook_remarketing_code_id;
}
if($google_analyze_id){
    $this['google_analyze_id'] = $google_analyze_id;
}
}
==
<!DOCTYPE html>
<html lang="ja-JP" xml:lang="ja-JP">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="shortcut icon" href="{{ 'assets/img/favicon.ico'|theme }}">
	<link rel="stylesheet" href="{{ 'assets/css/swiper.min.css'|theme }}">
	<link rel="stylesheet" href="{{ 'assets/css/font-awesome.min.css'|theme }}">
	<link rel="stylesheet" href="{{ 'assets/css/commen.css'|theme }}">
	<link rel="stylesheet" href="{{ 'assets/css/css.css'|theme }}">
	<title>{% placeholder page_title default type="text" %}{{ catalog.app.name }}{% endplaceholder %}</title>
</head>
<body>
	<div class="topSpecialBanner">
		<div style="position: fixed;top:0;left: 0;width: 100%;">
			{% partial 'index/index-special-banner' %}
		</div>
	</div>
	<div class="cartHeadLogo"><a href="/" style="display: block;"><img style="margin: 0 auto;width: 200px;" src="{{ 'assets/img/nav/logo.png'|theme }}" alt="" ></a></div>
	{% page %}
	{% partial 'common/footer' %}
    {% partial 'common/bottom-banner' %} 
	
	<div id="loading">
	    <div class="loading"><img src="{{ 'assets/img/loadingAnimation.gif'|theme }}" alt=""></div>
	</div>
	<div class="goTop"><img src="{{ 'assets/img/btn_page_top.png'|theme }}" alt=""></div>
	<script type="text/javascript" src="{{ 'assets/js/jquery-1.11.2.min.js'|theme }}"></script>
	<script type="text/javascript" src="{{ 'assets/js/jquery.lazyload.js'|theme }}"></script>
	<script type="text/javascript" src="{{ 'assets/js/swiper.min.js'|theme }}"></script>
	<script type="text/javascript" src="{{ 'assets/js/main.js'|theme }}"></script>
	{% framework extras %}

  	{% scripts %}
  	<!-- Global site tag (gtag.js) - Google Analytics -->

<!-- Google Code for Remarketing Tag -->
<!--
Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. See more information and instructions on how to setup the tag on: http://google.com/ads/remarketingsetup
-->
	<script type="text/javascript">
        {% placeholder google_tag_params %}
	</script>
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 825149356;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/825149356/?guid=ON&amp;script=0"/>
</div>
</noscript>
{# GA代码3_大体 #}
{% if google_analyze_id %}
   <!-- Global site tag (gtag.js) - Google Analytics -->
   <script async src="https://www.googletagmanager.com/gtag/js?id={{ google_analyze_id }}"></script>
   <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
      gtag('config', '{{ google_analyze_id }}');
   </script>
{% endif %}
{% if facebook_remarketing_code_id %}
   <!-- Facebook Pixel Code -->
   <script>
      !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
         n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
         n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
         t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
         document,'script','https://connect.facebook.net/en_US/fbevents.js');
      fbq('init', '{{ facebook_remarketing_code_id }}');
      fbq('track', 'PageView');
      {% placeholder fb_standard_event %}
   </script>
   <!-- <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id={{ facebook_remarketing_code_id }}&ev=PageView&noscript=1" /></noscript> -->
   <!-- DO NOT MODIFY -->
   <!-- End Facebook Pixel Code -->
{% endif %}

    {% flash %}
    {%if  message == '商品がカートに追加されました'%}
    <div class="flashCloseBox">
        <div class="flashCloseProcuct">
            <p id="flash-text">カートに商品を追加しました！</p>
        </div>
    </div>
    {% elseif message == 'ご注文を承りました。'%}

    {% else %}
    <div class="flashCloseBox">
        <div class="flashCloseProcuct">
            <p id="flash-text">{{ message }}</p>
        </div>
    </div>
    {% endif %}
    <script type="text/javascript">
        $(function () {
            $(".flashClose").click(function(){
                $(".flashCloseBox").hide();
            });
            $(".flashCloseBox").delay(2000).hide(0);
            console.log('hihihihihihihihihi');
        });
    </script>
    <style type="text/css">
        .flashCloseProcuct{position:fixed;top:50%;left:50%;display:block;opacity:1;background:rgba(0,0,0,.6) url({{ 'assets/images/succed.png'|theme }}) no-repeat top 20px center/40%;width:150px;height:150px;margin:-85px 0 0 -85px;padding:10px;font-size:13px;color:#fff;z-index:99999;border-radius:10px;}
        .flashCloseProcuct p{position:absolute;bottom:6px;padding:0 15px;}
        .flashCloseCont{position:absolute;top:30%;left:50%;display:block;opacity:1;background:#fff;width:300px;margin-left:-160px;padding:10px;font-size:13px;color:#393939;z-index:99999}
        .flashCloseCont .flashClose{margin-top:10px;outline:0}
    </style>
    {% endflash %}
</body>